﻿using System;
using System.Collections.Generic;

namespace YJKArch.DormantWindow
{
	public class FillRegionZComparer : IComparer<FillRegion>
	{
		public int Compare(FillRegion a, FillRegion b)
		{
			double num = a.GetMaxZ() + a.GetAverageZ();
			double value = b.GetMaxZ() + b.GetAverageZ();
			return num.CompareTo(value);
		}
	}
}
